<template>
  <div>
    <el-row type="flex" justify="center">
      <el-col>
        <h2 class="content">{{certStatus ==2 ? "认证结论通知：通过" : "认证结论通知：驳回"}}</h2>
        <p class="certResult">{{ result }}</p>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      result: ""
    };
  },
  props: {
    certStatus: ''
  },
  created() {
    this.getCert();
  },
  methods: {
    // 获取该页数据
    getCert() {
      this.$http({
        url: this.$http.cert("/cert/result"),
        method: "get",
        params: this.$http.adornParams(
          {
            certId: this.$store.state.user.certId
          },
          false
        )
      }).then(res => {
        this.result = res.data.data;
      });
    }
  }
};
</script>

<style>
.content {
  text-align: center;
}
.certResult {
  padding: 10px 100px;
  font-size: 22px;
}
</style>
